package com.csu.letaobackend.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.csu.letaobackend.bean.Itemeval;
import com.csu.letaobackend.bean.Shop;
import com.csu.letaobackend.commom.CommonResponse;
import com.csu.letaobackend.vo.ItemVO;

import java.util.List;

public interface EvaluationService {
      CommonResponse<List<ItemVO>> getCollections(String username);

      CommonResponse<List<ItemVO>> addCollections(String username,int itemid);

      CommonResponse<List<ItemVO>> deleteCollections(String username ,int itemid);

      CommonResponse<List<Shop>> getCollectionShops(String username);

      CommonResponse<List<Shop>> addCollectionsShops(String username,int shopid);

      CommonResponse<List<Shop>> deleteCollectionsShops(String username ,int shopid);

      CommonResponse<List<Itemeval>> addEvaluations(int itemid, String content, double star, String username);

      CommonResponse<List<Itemeval>> getEvaluations(int itemid);

      CommonResponse<IPage<ItemVO>> getCollectionsPages(int currentPage, int pageSize, String username);

}
